package com.usian.apis.admin;

import com.usian.model.admin.dtos.SensitiveDto;
import com.usian.model.admin.pojos.AdSensitive;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;



@Api(value = "敏感词管理" ,tags = "Sensitive", description = "敏感词管理")
public interface AdSensitiveControllerApi {
    /**
     *  分页 模糊查询
     * @param dto
     * @return
     */
    @ApiOperation("查询敏感词信息")
     public ResponseResult findPage(@RequestBody SensitiveDto dto);

    /**
     *  添加
     * @param adSensitive
     * @return
     */
    @ApiOperation("添加敏感词信息")
     public ResponseResult save(AdSensitive adSensitive);

    /**
     * 单个删除
     * @param id
     * @return
     */
    @ApiOperation("单个删除敏感词信息")
     public ResponseResult del(Integer id);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    @ApiOperation("批量删除敏感词信息")
     public ResponseResult dels(Integer [] ids);

    /**
     * 修改
     * @param adSensitive
     * @return
     */
    @ApiOperation("修改敏感词信息")
     public  ResponseResult update(AdSensitive adSensitive);

    /**
     *  根据ID查找
     * @param id
     * @return
     */
    @ApiOperation("查询单个敏感词信息")
     public ResponseResult findById(Integer id);


}
